/**
 *
 */
package com.dhcc.cdbp.orika;

import ma.glasnost.orika.CustomMapper;
import ma.glasnost.orika.MapperFacade;
import ma.glasnost.orika.MappingContext;

import org.junit.Test;

import com.dhcc.cdbpdc.entity.emr.TestRec;
import com.dhcc.cdbpdc.entity.healthindex.DiagDetailIndex;
import com.dhcc.cdbpdc.entity.healthindex.HealthTestReportIndex;

/**
 * @author 谢进军
 *
 */
public class TestRecToHealthTestReportIndexTest extends ObjectToObjectTest{
	@Test public void testTestRecToHealthTestReportIndex(){
		mapperFactory.classMap(TestRec.class, HealthTestReportIndex.class)
				.customize( new CustomMapper<TestRec, HealthTestReportIndex>() {
					@Override
					public void mapAtoB(TestRec a, HealthTestReportIndex b, MappingContext context) {
						super.mapAtoB(a, b, context);
					}
				})
				.fieldAToB("", "");
			;
		TestRec testRec = populator.populateBean( TestRec.class);
		MapperFacade mapper = mapperFactory.getMapperFacade();
		DiagDetailIndex diagDetailIndex = mapper.map(testRec, DiagDetailIndex.class);
	}
}
